package pojo;

import java.util.List;

public class Category {

    private int id;
    private String typename;
    private List<Product> goods;


    public Category() {
    }

    public Category(int id, String typename, List<Product> goods) {
        this.id = id;
        this.typename = typename;
        this.goods = goods;
    }

    /**
     * 获取
     * @return id
     */
    public int getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(int id) {
        this.id = id;
    }

    /**
     * 获取
     * @return typename
     */
    public String getTypename() {
        return typename;
    }

    /**
     * 设置
     * @param typename
     */
    public void setTypename(String typename) {
        this.typename = typename;
    }

    /**
     * 获取
     * @return goods
     */
    public List<Product> getGoods() {
        return goods;
    }

    /**
     * 设置
     * @param goods
     */
    public void setGoods(List<Product> goods) {
        this.goods = goods;
    }

    public String toString() {
        return "Category{id = " + id + ", typename = " + typename + ", goods = " + goods + "}";
    }
}
